<?php

use yii\helpers\Html;
use metronic\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model admin\models\AdminForm */
/* @var $form metronic\widgets\ActiveForm */
$this->registerJsFile('/js/book-select2.js', ['depends' => 'metronic\assets\Select2Asset']);
?>

<div class="admin-form">

    <?php $form = ActiveForm::begin() ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'display_order')->numberInput()->hint('0 ~ 255之间，值越大，显示越靠前')->wrapper(['width' => 3]) ?>

    <?php ActiveForm::end() ?>

</div>
